import request from '@/utils/request'

export function userList(data) {
  return request({
    url: '/user',
    method: 'get',
    data
  })
}

export function userPost(data) {
  return request({
    url: '/user',
    method: 'post',
    data
  })
}

export function userPatch(data) {
  return request({
    url: `/user/${data.id}`,
    method: 'patch',
    data
  })
}
